﻿<%@ page language="java" import="java.util.*,org.hyy.vo.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>商品列表</title>

	<link href="css/index.css" rel="stylesheet" type="text/css" />
	<link href="css/register.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
	<%@include file="../public/head.jsp" %>	
		<div id="hr-body">
		    <div class="hr-body-content">
			   <TABLE class=hr-body-layout width="100%">
				  <TBODY>
				  <TR>
				    <%@include file="../public/adminleft.jsp" %>
				      <TD class=hr-bl-right vAlign=top>
				      	<DIV class=MemberCenterWrap>
				      		<H2>欢迎进入管理菜单->商品列表:</H2>
								<div class="TableWrap MemberOrderList">
									<table class="list" cellpadding="0" cellspacing="0" width="100%">
								    <thead>
								      <tr>
								        <th>产品ID</th>
								        <th>产品名称</th>
								        <th>市场价</th>
								        <th>会员价</th>
								        <th>上架时间</th>
								        <th colspan="2">操作</th>
								      </tr>
								    </thead>
								    <tbody>
								    <s:iterator value="products" id="product">
										<tr>
											<td>${product.id}</td>
											<td>${product.name}</td>
											<td>${product.normalPrice}</td>
											<td>${product.memberPrice}</td>
											<td>${product.pdate}</td>
											<td><a href="delproduct?pid=${product.id}">删除</a></td>
										</tr>
									</s:iterator>
								    </tbody>
								  </table>
								</div>
								<br style="clear: both;" />
								<!--翻页控制开始--> 
								<form name="FORM_TPL_PAGER" action="menuadmin?menuid=3" method="post">
								  <p class="PagerWrap"><span>共有${totalRecords}条</span> <span style="color: rgb(255, 153, 0);">${totalRecords}/${totalPages}页</span> 转到
								    <input name="p" size="2"  type="text" />页 
								    <input name="Submit" class="buttonstyle" value="go" type="submit" />
								  </p>
								</form>
								<a href="showaddproduct">添加商品</a>
								<form action="AddProduct" method = "post" id="form1" style="display:none">
									<input type="text" name="step" value="1" style="display:none" />
								</form>
				      		</DIV></TD></TR>
				      	</TBODY>
     				</TABLE>
     			</div>
     		</div>
     	
		<%@include file="../public/foot.jsp" %>
  </body>
</html>
